<#escape x as x?html>
<table>
    <tr>
        <td style="padding-right: 20px" valign="top">
            <span class="info-box-icon" style="background-color: transparent;"><img
                    src="/resource/app/${app.logoFile!"app_default.png"}" style="margin-top: -10px;border-radius: 0;"
                    alt="应用"></span>
        </td>
        <td>
            <div class="info-box-text"
                 style="font-weight:bold;text-align: left;font-size: 22px;padding-top: 5px;">${app.displayName}
            </div>
            <div class="info-box-text"
                 style="font-size: 12px;color:#999999;text-align: left;margin-top: 10px;">
                <i class="fa  fa-star"
                   style="font-size: 20px;color: <#if app.star gt 0>#f2d741<#else>#c9c9c9</#if>"></i>
                <i class="fa  fa-star"
                   style="font-size: 20px;color: <#if app.star gt 2>#f2d741<#else>#c9c9c9</#if>"></i>
                <i class="fa  fa-star"
                   style="font-size: 20px;color: <#if app.star gt 4>#f2d741<#else>#c9c9c9</#if>"></i>
                <i class="fa fa-star" style="font-size: 20px;color: <#if app.star gt 6>#f2d741<#else>#c9c9c9</#if>"></i>
                <i class="fa fa-star" style="font-size: 20px;color: <#if app.star gt 8>#f2d741<#else>#c9c9c9</#if>"></i>
                    <span style="margin-left: 30px;font-size: 14px;">(&nbsp;&nbsp;<i
                            class="fa fa-rss text-primary" reset="" title="订阅"></i>&nbsp;${app.subscribeCount}次订阅&nbsp;&nbsp;)</span>
            </div>
            <p style="font-size: 14px;color:#999999;margin-top: 5px;margin-bottom: 5px;">
                <span>发布日期：${app.publishTime!"未发布"}</span>&nbsp;&nbsp;&nbsp;&nbsp;</p>
            <p style="font-size: 14px;color:#999999;"><span>发布者: ${user.name}</span></p>
        </td>
    </tr>
</table>
<!-- 应用截图 -->
<table class="table" style="margin-top: 10px;">
    <thead>
    <tr>
        <th style="font-size: 18px;color: #707070;border-bottom: 1px solid #dadada;">
            <img src="/assets/img/demo/app-info-prefix.png"
                 style="margin-top: -10px;border-radius: 0;margin-top: -5px;" alt="User Image">&nbsp;应用截图
        </th>
    </tr>
    </thead>
</table>
<!-- 轮播 -->
<div id="ca-container" class="ca-container hidden-md-fusion" style="background-color: white">
    <div class="ca-nav"><span class="ca-nav-prev">Previous</span><span class="ca-nav-next">Next</span></div>
    <div class="ca-wrapper" style="overflow: hidden;">
        <#list app.screenshotFiles as file>
            <div class="ca-item" style="border: 1px solid #ccc; margin-right: 2px">
                <image src="/resource/app/${file}">
            </div>
        </#list>
    </div>
</div>
<div id="ca-container-md" class="ca-container hidden-lg-fusion" style="background-color: white;width: 658px;">
    <div class="ca-nav"><span class="ca-nav-prev">Previous</span><span class="ca-nav-next">Next</span></div>
    <div class="ca-wrapper" style="overflow: hidden;">
        <#list app.screenshotFiles as file>
            <div class="ca-item" style="border: 1px solid #ccc; margin-right: 2px">
                <image src="/resource/app/${file}">
            </div>
        </#list>
    </div>
</div>
<!-- 应用介绍 -->
<table class="table" style="margin-top: 10px;">
    <thead>
    <tr>
        <th style="font-size: 18px;color: #707070;border-bottom: 1px solid #dadada;">
            <img src="/assets/img/demo/app-info-prefix.png"
                 style="margin-top: -10px;border-radius: 0;margin-top: -5px;" alt="User Image">&nbsp;应用介绍
        </th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>
            <p id="product-description" data-f-expanded="true"
               class="m-product-detail-description max-height-override oneui-override srv_description"
               itemprop="description" style="white-space: pre-line;margin-left: 20px;margin-top: -20px;">
            ${app.description}
            </p>
        </td>
    </tr>
    </tbody>
</table>
<!-- 版本特性 -->
<table class="table" style="margin-top: 10px;">
    <thead>
    <tr>
        <th style="font-size: 18px;color: #707070;border-bottom: 1px solid #dadada;">
            <img src="/assets/img/demo/app-info-prefix.png"
                 style="margin-top: -10px;border-radius: 0;margin-top: -5px;" alt="User Image">&nbsp;版本特性
        </th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>
            <p id="product-description" data-f-expanded="true"
               class="m-product-detail-description max-height-override oneui-override srv_description"
               itemprop="description" style="white-space: pre-line;margin-left: 20px;margin-top: -20px;">
            ${app.versionFeature}
            </p>
        </td>
    </tr>
    </tbody>
</table>

<table class="table" style="margin-top: 10px;">
    <thead>
    <tr>
        <th style="font-size: 18px;color: #707070;border-bottom: 1px solid #dadada;">
            <img src="/assets/img/demo/app-info-prefix.png"
                 style="margin-top: -10px;border-radius: 0;margin-top: -5px;" alt="User Image">&nbsp;SSO配置
        </th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td style="padding: 10 20px">
            <table class="table table-bordered">
                <tr>
                    <td width="200px">
                        客户端ID
                    </td>
                    <td>
                        <#if app.ssoConfig??>
                            ${app.ssoConfig.clientId!""}
                        </#if>
                    </td>
                </tr>
                <tr>
                    <td>
                        客户端秘钥
                    </td>
                    <td>
                        <#if app.ssoConfig??>
                            ${app.ssoConfig.clientSecret!""}
                        </#if>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    </tbody>
</table>

<table class="table" style="margin-top: 10px;">
    <thead>
    <tr>
        <th style="font-size: 18px;color: #707070;border-bottom: 1px solid #dadada;">
            <img src="/assets/img/demo/app-info-prefix.png"
                 style="margin-top: -10px;border-radius: 0;margin-top: -5px;" alt="User Image">&nbsp;数据服务
        </th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td style="padding: 10 20px">
            <table class="table table-bordered">
                <#list services as ser>
                    <tr>
                        <td width="200px">
                        ${ser.name}
                        </td>
                        <td>
                        ${ser.url}?serviceId=${ser.id}&appId=${app.id}
                        </td>
                    </tr>
                </#list>
            </table>
        </td>
    </tr>
    </tbody>
</table>
<script>
    context.call([
        "core", "carousel"
    ], function (core) {
        $('#ca-container').contentcarousel();
        $('#ca-container-md').contentcarousel();
    });
</script>
</#escape>